package com.easyim.imserver.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "com.easyim.redis")
public class RedisConfigProperties {

    private RedisConnectionProperties msg;

}
@Data
class RedisConnectionProperties{
    private String type;
    private String hostName;
    private int port;
    private int database = 0;
    private String username;
    private String password;
}
